/*
 * @Author: ZhaoZhiqi
 * @Date: 2024-11-11 10:09:09
 * @LastEditors: ZhaoZhiqi
 * @LastEditTime: 2024-12-06 14:58:12
 * @Description:
 * @FilePath: \charging-admin\src\api\charge\order.js
 */
import request from "@/utils/request";

// 订单管理 充电记录
export function getRecordAPI(query) {
  return request({
    url: "/order/charge/record/list",
    method: "get",
    params: query,
  });
}

// 订单管理 充电记录电流电压详情
export function getChargeRecordAPI(query) {
  return request({
    url: "/order/charge/record/detail/list",
    method: "get",
    params: query,
  });
}

// 订单管理 充电订单
export function getOrderAPI(query) {
  return request({
    url: "/order/list",
    method: "get",
    params: query,
  });
}

// 订单管理 实体卡充值 商家代充
export function getProxyChargingAPI(query) {
  return request({
    url: "/wallet/card/recharge/list",
    method: "get",
    params: query,
  });
}

// 订单管理 实体卡充值 用户充值
export function getUserChargingAPI(query) {
  return request({
    url: "/order/list",
    method: "get",
    params: query,
  });
}

// 订单管理 实体卡充值 用户充值
export function getCardFlowAPI(query) {
  return request({
    url: "/order/card/flow/list",
    method: "get",
    params: query,
  });
}

// 订单管理 退款
export function refundAPI(data) {
  return request({
    url: "/wallet/card/recharge/refund",
    method: "post",
    data: data,
  });
}